package com.ktjy.test;

import com.ktjy.entity.Auctionuser;
import com.ktjy.mapper.AuctionuserMapper;
import com.ktjy.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class a {
    @Test
    public void test() {
        try (SqlSession sqlSession = MyBatisUtil.createSqlSession()) {
            AuctionuserMapper auctionuserMapper = sqlSession.getMapper(AuctionuserMapper.class);
            Auctionuser auctionuser = auctionuserMapper.login(new Auctionuser("admin", "123456"));
            System.out.println(auctionuser);
        }
    }
}
